import DiseasePreview from './Main/DiseaseOverview/DiseasePreview';
import GaugeSurvey from './Main/GaugeSurvey/GaugeSurvey';
import HomePage from './Main/HomePage/HomePage';
import PsdUpdateSuc from './Main/Password/PsdUpdateSuc';
import UpdatePsd from './Main/Password/UpdatePsd';
import QRLogin from './Main/QRActions/QRLogin';
import SearchGauge from './Main/SearchGauge/SearchGauge';
import SeeDiseaseOverview from './Main/SeeDiseaseOverview/SeeDiseaseOverview';
import SubmitCase from './Main/SubmitCase/SubmitCase';
import SurveyExplain from './Main/SurveyExplain/SurveyExplain';
import SignIn from './SignIn/SignIn';
import Test from './Test/Test';

export interface IRouteConfigItem {
  path: string;
  name: string;
  // tslint:disable-next-line:no-any
  component?: React.ComponentType | any;
  icon?: string;
  status?: string;
  routes?: IRouteConfigItem[];
}

const Routes: IRouteConfigItem[] = [
  {
    path: '/',
    name: '首页',
    component: HomePage,
  },
  {
    path: '/GaugeSurvey',
    name: '量表',
    component: GaugeSurvey,
  },
  {
    path: '/SearchGauge',
    name: '量表搜索页',
    component: SearchGauge,
  },
  {
    path: '/DiseasePreview',
    name: '病例总览',
    component: DiseasePreview,
  },
  {
    path: '/SeeDiseaseOverview/:patientId/:patientName/:customCode',
    name: '查看病例总览',
    component: SeeDiseaseOverview,
  },
  {
    path: '/SurveyExplain/:companyCode',
    name: '调查说明',
    component: SurveyExplain,
  },
  {
    path: '/SignIn/:code',
    name: '登录',
    component: SignIn,
  },
  {
    path: '/QRLogin',
    name: '二维码',
    component: QRLogin,
  },

  {
    path: '/SubmitCase/:code/:name/:sampleSequence',
    name: '提交成功',
    component: SubmitCase,
  },
  {
    path: '/Test',
    name: '测试',
    component: Test,
  },
  {
    path: '/UpdatePsd/:name/:code',
    name: '修改密码',
    component: UpdatePsd,
  },

  {
    path: '/PsdUpdateSuc/:code',
    name: '修改成功',
    component: PsdUpdateSuc,
  },
];

export default Routes;
